package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Memberfollowteam implements Serializable {
    private String mftno;

    private String tno;

    private String mno;

    private Date mftdate;

    private Team team;

    public Team getTeam() {
        return team;
    }

    public void setTeam(Team team) {
        this.team = team;
    }

    private static final long serialVersionUID = 1L;

    public String getMftno() {
        return mftno;
    }

    public void setMftno(String mftno) {
        this.mftno = mftno;
    }

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public String getMno() {
        return mno;
    }

    public void setMno(String mno) {
        this.mno = mno;
    }

    public Date getMftdate() {
        return mftdate;
    }

    public void setMftdate(Date mftdate) {
        this.mftdate = mftdate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Memberfollowteam other = (Memberfollowteam) that;
        return (this.getMftno() == null ? other.getMftno() == null : this.getMftno().equals(other.getMftno()))
            && (this.getTno() == null ? other.getTno() == null : this.getTno().equals(other.getTno()))
            && (this.getMno() == null ? other.getMno() == null : this.getMno().equals(other.getMno()))
            && (this.getMftdate() == null ? other.getMftdate() == null : this.getMftdate().equals(other.getMftdate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMftno() == null) ? 0 : getMftno().hashCode());
        result = prime * result + ((getTno() == null) ? 0 : getTno().hashCode());
        result = prime * result + ((getMno() == null) ? 0 : getMno().hashCode());
        result = prime * result + ((getMftdate() == null) ? 0 : getMftdate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mftno=").append(mftno);
        sb.append(", tno=").append(tno);
        sb.append(", mno=").append(mno);
        sb.append(", mftdate=").append(mftdate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}